package com.linzp.bishe.mapper;

import com.linzp.bishe.entity.DisciplineCompetition;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linzp.bishe.model.DisciplineCompetitionModel;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 林泽鹏
 * @since 2021-11-01
 */
@Mapper
public interface DisciplineCompetitionMapper extends BaseMapper<DisciplineCompetition> {
	public List<DisciplineCompetitionModel> getByIdAllDisciplineCompetition(@Param("id") Integer id, @Param("tableName") String tableName,
	                                                                        @Param("searchCompetitionName") String searchCompetitionName, @Param("searchStatus")String searchStatus,
	                                                                        @Param("current") Integer current,@Param("page") Integer page);

	public Integer getByIdAllDisciplineCompetitionCount(@Param("id") Integer id, @Param("tableName") String tableName,
	                                                                        @Param("searchCompetitionName") String searchCompetitionName, @Param("searchStatus")String searchStatus);
}
